module.exports = (grunt) ->
	grunt.initConfig
		pkg: grunt.file.readJSON 'package.json'

		coffee:
			compile:
				options:
					bare: true
				files:
					'assets/js/G1BC.js': 'assets/js/*.coffee'
		uglify:
			options:
				banner: """/*! The Graphical Building Creator - by Bluemetal
							To view the unmangled coffeescript files, go to the bitbucket repo
							This file was built on <%= grunt.template.today("dd-mm-yyyy") %> */\n"""

			build:
				files:
					'assets/js/G1BC.min.js': 'assets/js/G1BC.js'
		sass:
			dist:
				files:
					'assets/css/G1BC.css': 'assets/css/G1BC.scss'
		nodewebkit:
			options:
				build_dir: './nwbuild'
				win: true
				mac: true
				linux32: true

	grunt.loadNpmTasks 'grunt-contrib-uglify'
	grunt.loadNpmTasks 'grunt-contrib-coffee'
	grunt.loadNpmTasks 'grunt-contrib-sass'
	grunt.loadNpmTasks 'grunt-node-webkit-builder'

	grunt.registerTask 'default', ['coffee']
	grunt.registerTask 'default', ['uglify']
	grunt.registerTask 'default', ['sass']
	grunt.registerTask 'default', ['nodewebkit']
